<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateProductConfigsTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('product_configs', function (Blueprint $table) {
            $table->id();
            $table->timestamps();
            $table->string('contract_address', 64)->index()->comment('商品合约地址');
            $table->string('config_key', 32)->comment('配置键');
            $table->string('config_value', 512)->comment('配置值');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('product_configs');
    }
}
